package com.umeox.watch.moto.dataservice.mqtt.bean;


/**
 * Created by Rambo 2020/5/26
 * Describe:
 */
public class FileSignBody {

    public String holderId;//设备用户ID

    public int serviceType;//1:  私有文件服务

    public int fileType;//文件类型，（0：default；11：语聊文件；12：相册文件；13：SOS录音）


    public static final class Builder {
        public String holderId;//设备用户ID
        public int serviceType;//1:  私有文件服务
        public int fileType;//文件类型，例：sos

        private Builder() {
        }

        public static Builder aFileSignBody() {
            return new Builder();
        }

        public Builder setHolderId(String holderId) {
            this.holderId = holderId;
            return this;
        }

        public Builder setServiceType(int serviceType) {
            this.serviceType = serviceType;
            return this;
        }

        public Builder setFileType(int fileType) {
            this.fileType = fileType;
            return this;
        }

        public FileSignBody build() {
            FileSignBody fileSignBody = new FileSignBody();
            fileSignBody.serviceType = this.serviceType;
            fileSignBody.fileType = this.fileType;
            fileSignBody.holderId = this.holderId;
            return fileSignBody;
        }
    }

    @Override
    public String toString() {
        return "FileSignBody{" +
                "holderId='" + holderId + '\'' +
                ", serviceType=" + serviceType +
                ", fileType='" + fileType + '\'' +
                '}';
    }
}
